import { PageParamsModel } from "@/model/page-params-model";

const userListOptions: object = {
  searchShowBtn: true,
  align: "center",
  menuAlign: "center",
  selection: true,
  viewBtn: false,
  editBtn: false,
  delBtn: true,
  addBtn: false,
  searchMenuSpan: 4,
  column: [
    {
      label: "ID",
      prop: "id",
      width: 50,
    },
    {
      label: "姓名",
      prop: "name",
      width: 100,
      search: true,
      searchLabelWidth: 100,
    },
    {
      label: "手机号码",
      prop: "mobile",
      width: 120,
      search: true,
      searchLabelWidth: 100,
    },
    {
      label: "性别",
      prop: "sex",
      width: 60,
    },
    {
      label: "年龄",
      prop: "age",
      width: 60,
    },
    {
      label: "户籍",
      prop: "domicile",
      overHidden: true,
      search: true,
      searchLabelWidth: 100,
      align: "left",
    },
    {
      label: "改造地址",
      prop: "address",
      overHidden: true,
      search: true,
      searchLabelWidth: 100,
      align: "left",
    },
    {
      label: "住宅情况",
      prop: "house_situation",
      width: 80,
      search: true,
      searchLabelWidth: 100,
    },
    {
      label: "家庭人数",
      prop: "family_number",
      width: 80,
    },
    {
      label: "老年人数",
      prop: "elderly_number",
      width: 80,
    },
    {
      label: "家庭联系人",
      prop: "family_contact",
      width: 100,
    },
    {
      label: "联系人电话",
      prop: "family_contact_phone",
      width: 120,
    },
    {
      label: "创建时间",
      prop: "create_time",
      type: "date",
      width: 180,
      search: true,
      searchRange: true,
      searchLabelWidth: 100,
      valueFormat: "YYYY-MM-DD",
    },
  ],
};

export default userListOptions;

export class UserListSearchModel extends PageParamsModel {
  name?: string = "";
  mobile?: string = "";
  domicile?: string = "";
  address?: string = "";
  houseSituation?: string = "";
}
